home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / doom / quake2.zip / QUEST091.ZIP / GO2.BAT < prev    next >
DOS Batch File  |  1996-10-16  |  1KB  |  71 lines

  1. @echo off
  2. rem
  3. rem ******** Quest Quake startup batch file ***********
  4. rem ******** Fast Full Version
  5. rem
  6.     set CurDrive=c:
  7.     set CurDir=\prog\quest
  8.     set QuakeDrive=d:
  9.     set QuakeDir=\quake
  10.     set BSPPath=d:\quest\qbsp_win
  11.  
  12. md quest.tmp
  13. copy %1.map quest.tmp
  14. cd quest.tmp
  15.  
  16. rem ---------
  17. rem QBSP Step
  18. rem ---------
  19. %BSPPath%\qbsp %1
  20. if errorlevel 1 goto BailQBSP
  21. goto OkQBSP
  22. :BailQBSP
  23. echo Error building BSP!  Hit SPACE to abort or wait to continue...
  24. wait 5
  25. if errorlevel 2 goto Bailout
  26.  
  27. :OkQBSP
  28. rem ----------
  29. rem Light Step
  30. rem ----------
  31. %BSPPath%\light %1
  32. if errorlevel 1 goto BailLight
  33. goto OkLight
  34. :BailLight
  35. echo Error building Lightmaps!  Hit SPACE to abort or wait to continue...
  36. wait 5
  37. if errorlevel 2 goto Bailout
  38.  
  39. :OKLight
  40. rem --------
  41. rem Vis step
  42. rem --------
  43. %BSPPath%\vis -fast %1
  44. if errorlevel 1 goto BailVis
  45. goto OkVis
  46. :BailVis
  47. echo Error building PVS!  Hit SPACE to abort or wait to continue...
  48. wait 5
  49. if errorlevel 2 goto Bailout
  50.  
  51. :OkVis
  52.  
  53. del %1.h1 > nul
  54. del %1.h2 > nul
  55. copy %1.bsp %QuakeDrive%%QuakeDir%\id1\maps > nul
  56. copy %1.bsp %CurDrive%%CurDir% > nul
  57. move %1.pts %QuakeDrive%%QuakeDir%\id1\maps > nul
  58. %QuakeDrive%
  59. cd %QuakeDir%
  60. quake +map %1
  61. %CurDrive%
  62. cd %CurDir%
  63. goto Exit
  64.  
  65. :Bailout
  66. cd..
  67. deltree /y quest.tmp
  68. :Exit
  69. deltree /y quest.tmp
  70. echo.
  71.